package com.sunshine.ssm.entity;

import java.util.List;
import java.util.Map;

/**
 * @Description: 用户信息接口Bean
 * @author: Hong.Wei
 * @Date: 2017/1/9 10:31
 */
public class UserSyncVo extends UserSync {
    private static final long serialVersionUID = 8353810232702942066L;

    //用户类型中文描述 1内部员工，2外部账号
    private String userTypeDesc;

    //工号和各业务系统对应的账号，包括有效和无效账号
    private List<Map<String, Object>> sysUsernameList;

    public List<Map<String, Object>> getSysUsernameList() {
        return sysUsernameList;
    }

    public void setSysUsernameList(List<Map<String, Object>> sysUsernameList) {
        this.sysUsernameList = sysUsernameList;
    }

    public String getUserTypeDesc() {
        if (super.getUserType().equals("1")) {
            userTypeDesc = "内部员工";
        } else {
            userTypeDesc = "外部员工";
        }
        return userTypeDesc;
    }

    public void setUserTypeDesc(String userTypeDesc) {
        this.userTypeDesc = userTypeDesc;
    }


    @Override
    public String toString() {
        return "UserSyncVo{" +
                "userCode='" + super.getUserCode() + '\'' +
                ", userName='" + super.getUserName() + '\'' +
                ", userPhone='" + super.getUserPhone() + '\'' +
                ", userEmail='" + super.getUserEmail() + '\'' +
                ", cardNo='" + super.getCardNo() + '\'' +
                ", userType='" + super.getUserType() + '\'' +
                ", fid='" + super.getFid() + '\'' +
                ", fname='" + super.getFname() + '\'' +
                ", parentId='" + super.getParentId() + '\'' +
                ", leaderName='" + super.getLeaderName() + '\'' +
                ", leaderPost='" + super.getLeaderPost() + '\'' +
                ", pwd='" + super.getPwd() + '\'' +
                ", status='" + super.getStatus() + '\'' +
                ", validInd='" + super.getValidInd() + '\'' +
                ", stateCode='" + super.getStateCode() + '\'' +
                ", stateName='" + super.getStateName() + '\'' +
                ", cityCode='" + super.getCityCode() + '\'' +
                ", cityName='" + super.getCityName() + '\'' +
                ", areaCode='" + super.getAreaCode() + '\'' +
                ", areaName='" + super.getAreaName() + '\'' +
                ", updatedTime=" + super.getUpdatedTime() + '\'' +
                ", userTypeDesc='" + getUserTypeDesc() + '\'' +
                ", sysUsernameList=" + getSysUsernameList() +
                '}';
    }

}
